package cn.itcast.extends_;

/**
 * @title: Father
 * @Author Zhou
 * @Date: 2022/1/26 14:51
 * @Version 1.0
 */
public class Father extends Grandpa {
    String name = "爸爸";
    private int age = 40;

    public int getAge() {
        return age;
    }

    public Father() {
        System.out.println("Father 的构造器");
    }

    public Father(int age) {
        System.out.println("Father有参构造器，年龄为" + age);
    }
}
